# -*-coding:UTF-8-*-
''' Copyright (c) [Year] [name of copyright holder]
[Software Name] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
         http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN " as IS" B asIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
'''
import os
import datetime  as dt
import 函数  as function
import 错误  as error

os.system('C:/Windows/System32/cmd.exe "python -m pip install click"')
os.system('C:/Windows/System32/cmd.exe "python -m pip install FileProcessing"')
print("/033c",end="")
import click  as cli
import FileProcessing  as fp

@cli.command()
@cli.option('cd(path)',defult=1,help='change path that this program to work(if verineble path is none,raise PathError')
@cli.option('now([presson])',help='get time now it is')
@cli.option('dir(path)',help='get files and folders in <path> folder(if path is none get this folder dir)')
@cli.option('start(program)',help='run a Windows Quicly-install(use) program(if program is none,raise PathError.FileError')
@cli.option('stop(porogram)',help='stop a Windows Quicly-install(use) program(if program is none,raise PathError.FileError')
@cli.option('--exit--000---',help='exit this program')
@cli.option('include(model name)',help='include package')
@cli.option('install(mod,pkg)',help='(un)install third pakages')

path=str(input("Command:Choose path.> $ "))
try:
	o.chdir(path)
except OSError:
	e=e.PathError(path)
	raise error.命名错误("主程序", "stdin.in", 38)
while True:
	cmd=str(input("cmd {} > $ ".format(path)))
	if(cmd == "---exit--000---"):
		ction.kill("Main.py")
	else:
		eval("ction."+cmd)

if(__name__ == '__main__'):
	open("Main.py")